import React from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { increment } from '../store/actions'

export default function Test() {
  const state = useSelector((state) => state)
  const dispatch = useDispatch()
  return (
    <div>
      <h3>Test:{state}</h3>
      <button onClick={() => dispatch(increment(8))}>+8</button>
    </div>
  )
}
